home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
bc_ti
/
ti815.asc
< prev
next >
Wrap
Text File
|
1992-02-24
|
3KB
|
133 lines
PRODUCT : Turbo C++, Borland C++ NUMBER : 815
VERSION : All
OS : DOS
DATE : February 25, 1992 PAGE : 1/1
TITLE : fstream vs. FILE * vs. DOS handles
The following provides, in tabular format, the equivalent
functions between FILE pointers, C++ file Streams and DOS file
handles. fstreams consist of fstreams, ifstreams and ofstreams.
FILE pointers are obtained from fopen, freopen, fdopen and other
functions. DOS handles are obtained from open, _open, create and
others
FILE * FSTREAM HANDLE
================================================
fopen fp.open or open
constructor
fseek fp.seekp lseek
ftell fp.tellp tell
feof fp.eof eof
fread fp.read read
fwrite fp.write write
fileno (fp.rdbuf())->fd() <NA>
use fileno use fstrno chsize
fstrno
fcloseall <NA>
fdopen fp.attach <NA>
ferror
fflush fp.sync <NA>
fgetc fp.get use read
fgetpos use tellp use tell
fsetpos use seekp use lseek
fgets fp.get use read
use fileno use fstrno filelength
flushall <NA>
fprintf iomanip <NA>
fputc operator << use write
fputs operator << use write
freopen <NA>
fscanf operator >> <NA>
with iomanip
use fileno use fstrno fstat
use fileno use fstrno getftime
use fileno use fstrno setftime
use fileno use fstrno lock
use filno use fstrno setmode
setvbuf <NA>
use fdopen use attach sopen
use fileno use fstrno unlock
PRODUCT : Turbo C++, Borland C++ NUMBER : 815
VERSION : All
OS : DOS
DATE : February 25, 1992 PAGE : 2/1
TITLE : fstream vs. FILE * vs. DOS handles
Stream equivalent of file number:
#define fstrno(fp) (((fp).rdbuf())->fd())